import { createRouter, createWebHistory } from 'vue-router'
import Home from '@/views/home/index.vue'

const routes = [{
        path: '/',
        name: 'home',
        component: Home
    },
    {
        path: '/kind',
        name: 'kind',
        component: () =>
            import ('../views/kind/index.vue')
    },
    {
        path: '/cart',
        name: 'cart',
        component: () =>
            import ('../views/cart/index.vue')
    },
    {
        path: '/my',
        name: 'my',
        component: () =>
            import ('../views/my/index.vue')
    },
]

const router = createRouter({
    history: createWebHistory(process.env.BASE_URL),
    routes
})

export default router